var app = getApp();
var SERVER_URL=app.globalData.SERVER_URL;
Page({
    onShow:function(){

    },
    listClick:function(e){
        let index = e.currentTarget.dataset.index;
        index =parseInt(index);
        var url="";
        switch (index){
            //请假申请
            case 1:
                url='./leave/index';
                break;
            //出差申请
            case 2:
                url='./travel/index';
                break;
            //接待申请
            case 3:
                url='./reception/index';
                break;
            //派车申请
            case 4:
                url='./car/index';
                break;
            //办公用品申请
            case 5:
                url='./goods/index';
                break;
            //费用申请
            case 6:
                url='./cost/index';
                break;
            //其它申请
            case 7:
                url='./other/index';
                break;
        }
        if(url==""){
            return;
        }
        wx.navigateTo({
          url: url
        });
    }
});